// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter  from 'vue-router'
import routeConfig from './router-config'
import ElementUI from 'element-ui'
import VueParticles from 'vue-particles'
import qs from 'qs'
import axios from 'axios';
import echarts from "echarts";
import VCharts from 'v-charts';

import 'element-ui/lib/theme-chalk/index.css'

Vue.use(ElementUI)  //使用ElementUI
Vue.use(VueParticles) //使用动态特效 particles
Vue.use(VCharts);//使用v-charts插件
Vue.config.productionTip = false

//定义路由
Vue.use(VueRouter)

const router = new VueRouter({
  routes:routeConfig
})

/* eslint-disable no-new */
new Vue({
  router,
  el: '#app',
  render: h => h(App)
})
